from selenium import webdriver
import time


# 打开浏览器操作

def Open_Chrome():
    driver = webdriver.Chrome()
    url = "https://www.baidu.com"
    driver.get(url)
    driver.find_element_by_id('kw').send_keys("Python")
    driver.find_element_by_id('su').click()
    print("当前所在页面的title是：" + driver.title)
    print("当前所在页面的URL是：" + url)
    time.sleep(5)


Open_Chrome()
